<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			html,
			body {
				height: 100%;
				margin: 0;
				padding: 0
			}
			
			ul,
			li {
				text-indent: 0;
				text-decoration: none;
				margin: 0;
				padding: 0
			}
			
			img {
				border: 0
			}
			
			body {
				background-color: #white;
				color: #999;
				font: 100%/18px helvetica, arial, sans-serif
			}
			
			canvas {
				cursor: crosshair;
				display: block;
				left: 0;
				position: absolute;
				top: 0;
				z-index: 20
			}
			/*<script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="js/texiao.js"></script>*/
			
			<style>.footer {
				position: absolute;
				bottom: 0;
				width: 100%;
				height: 100px;
				background-color: #ffc0cb;
			}
			
			.a2 {
				list-style-type: none;
				margin: 0;
				padding: 0;
				width: 120px;
				height: 500px;
				background-color: black
			}
			
			.a1 {
				display: block;
				color: #000;
				padding: 8px 16px;
				text-decoration: none;
			}
			/* 鼠标移动到选项上修改背景颜色 */
			
			.a1:hover {
				background-color: #555;
				color: white;
			}
			
			.footer {
				position: absolute;
				bottom: 0;
				width: 100%;
				height: 100px;
				background-color: #ffc0cb;
			}
		</style>
		<!--背景动画 -->
        <script type="text/javascript" src="js/jquery.min.js"></script>

		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

		<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
	</head>

	<body style="background: ) ;background-size:cover; ">

		<script type="text/javascript">
		</script>
		<div class="row">

			<div class="row clearfix" >
				<div class="col-md-12 ">

				</div>
				<ol class="navbar navbar-inverse" id="info">

					<div class="col-md-7">
						<ul class="nav nav-tabs">
							
							<li role="presentation" class="active">
								<a href="#">视频</a>
								
							</li>
							<li role="presentation">
								<a href="#">热搜</a>
							</li>
							<li role="presentation">
								<a href="#">收藏</a>
							</li>
							<li role="presentation">
								<a href="#">空间</a>
							</li>
							<li role="presentation">
								<a href="#">分类</a>
							</li>
							<li role="presentation">
								<li role="presentation">
									<a href="#">空间</a>
								</li>
								<li role="presentation">
									<a href="#">换肤</a>
								</li>
                               <i>
								<marquee><a align="center" 
									style="color: red;font-size: x-large;" >
									这个世界很酷~</a></marquee></i>
						</ul>
						
					</div>

					<!--  -->

					<div class="col-md-5" >
						<ul class="nav nav-tabs">
							<li>
								<a>
									<img src="images/定位.jpg" height="20px" width="20px"> 大连[切换]
								</a>
							</li>

							<li role="presentation">
								<a>
									<img src="images/语言.jpg" width="20px" height="20px" />
									<select name="language">
										<option value="">language</option>
										<option value="">中文</option>
										<option value="">英语</option>
										<option value="">西班牙语</option>
										<option value="">俄罗斯语</option>
										<option value="">孟加拉语</option>
										<option value="">阿拉伯语</option>
										<option value="">印度语</option>
										<option value="">日语</option>
										<option value="">法语</option>
										<option value="">德语</option>
										<option value="">点击查看更多语言</option>
									</select>
								</a>
							</li>
							<li role="presentation">
								<a href="#">客服</a>
							</li>
							<li>
									<?php
		 if (isset($_GET["msg"])) {
		  echo $_GET["msg"];
		}
	   ?>
								
								 <?php 
       session_start();
       if(!isset($_SESSION["user"])){
        ?>
        <li><a href="/final_project/login/login.html" data-toggle="modal" data-target="#login">登录</a></li>
        <li><a href="/final_project/login/register.html" data-toggle="modal" data-target="#reg">注册</a></li>
        <?php        
       }else{
      ?>
      <li><a href="/final_project/login/login.html">欢迎【<?php echo $_SESSION["user"];?>】</a></li>
      <li><a href="qt_logout.php">注销</a></li>
      <li><a href="myCommentList.php" >我的评价</a></li>
     
      <?php
        }
    ?>
								
							</li>

						</ul>

					</div>

			</div>
		</div>
		</div>
		<!-- 主题内容-->
		<a style="color:red">提示：无聊的时候可以玩一玩休闲小游戏奥： </a>&nbsp;&nbsp;
		<a href="剪刀石头布.html">剪刀石头布</a>
		&nbsp;&nbsp;
		<a href="俄罗斯方块.html">俄罗斯小方块</a>
		<!-- 网页主题内容 -->

		<div class="row" style="background-color:#FDF7F7" >
			<div class="col-md-12" style="color: red">
			<div class="col-md-4">
			<p>按地区/时间</p>
			<p>
				<a href="#">国产</a>&nbsp; <a href="#">日本</a>&nbsp; <a href="#">欧美</a>&nbsp;
				<a href="#">其他</a>&nbsp;<br> <a href="#">2019</a>&nbsp; <a
					href="#">2018</a>&nbsp; <a href="#">2017</a>&nbsp; <a href="#">.....</a>&nbsp;
			</p>
		</div>
		<div class="col-md-4">
			<p>类型</p>
			<p>
				<a href="#">热血</a>&nbsp; <a href="#">搞笑</a>&nbsp; <a href="#">青春</a>&nbsp;
				<a href="#">电影</a>&nbsp; <a href="#">直播</a>&nbsp; <a href="#">教育</a>&nbsp;
				<a href="#">综艺</a>&nbsp; <a href="#">音乐</a>&nbsp; <a href="#">游戏</a>&nbsp;
				<a href="#">动漫</a>&nbsp; <a href="#">汽车</a>&nbsp; <a href="#">VR</a>&nbsp;
				<a href="#">娱乐</a>&nbsp; <a href="#">公益</a>&nbsp; <a href="#">资讯</a>&nbsp;
				<a href="#">生活</a>&nbsp; <a href="#">科技</a>&nbsp; <a href="#">财经</a>&nbsp;
				<a href="#">少儿</a>&nbsp; <a href="#">体育</a>&nbsp; <a href="#">时尚</a>&nbsp;
				<a href="#">来疯</a>&nbsp; <a href="#">其他</a>&nbsp;
			</p>
		</div>
		<div class="col-md-4">
			<p>按语言</p>
			<p>
				<a href="#">日语</a>&nbsp; <a href="#">国语</a>&nbsp; <a href="#">粤语</a>&nbsp;
				<a href="#">英语</a>&nbsp;<br> <a href="#">韩语</a>&nbsp; <a
					href="#">方言</a>&nbsp; <a href="#">其他</a>&nbsp;
			</p>
		</div>
		</div>
		</div>
		
		<!-- 搜索开始 -->
			<div class="row" style="background-color:#FDF7F7" >
		&nbsp;&nbsp;&nbsp;&nbsp;<?php
			require_once('head.php');
			?>
		
		</div>
		  <!-- 搜索 engding -->
	 <!-- 定义一个   8 ----4 的横向 -->
	<div class="container">

			<div class="row clearfix">
				 <!--  视频分类开始 -->
				<div class="col-md-9 ">
					<?php

						 //查询首页电影专栏的六个视频
 $sql1="select * from videotype where typename='电影'";
	$result1 = mysql_query($sql1) or die('查询失败！'.mysql_error());  
	$row1=mysql_fetch_assoc($result1);
	$tid1=$row1["tid"];
	//根据查的的视频id查询电影栏目的六条记录
	$sql11="select * from videos where tid='$tid1' limit 6";
	$result11 = mysql_query($sql11) or die('查询失败！'.mysql_error());  
//查询首页电视剧专栏的六个视频
 $sql2="select * from videotype where typename='电视剧'";
	$result2 = mysql_query($sql2) or die('查询失败！'.mysql_error());  
	$row2=mysql_fetch_assoc($result2);
	$tid2=$row2["tid"];
	//根据查的的视频id查询电视剧栏目的六条记录
	$sql22="select * from videos where tid='$tid2' limit 6";
	$result22 = mysql_query($sql22) or die('查询失败！'.mysql_error());  
//查询首页动画片专栏的六个视频
$sql3="select * from videotype where typename='动画片'";
	$result3 = mysql_query($sql3) or die('查询失败！'.mysql_error());  
	$row3=mysql_fetch_assoc($result3);
	$tid3=$row3["tid"];
	//根据查的的视频id查询动画片栏目的六条记录
	$sql33="select * from videos where tid='$tid3' limit 6";
	$result33 = mysql_query($sql33) or die('查询失败！'.mysql_error());  
//查询首页显示的点击排行4个视频和下载排行的前4个视频，降序排
 $sql5="select * from videos  order by hittimes desc  limit 4";
	$sql6="select * from videos  order by downtimes desc  limit 4";
	$result5 = mysql_query($sql5) or die('查询失败！'.mysql_error());  
	$result6 = mysql_query($sql6) or die('查询失败！'.mysql_error());  
						?>
			<!-- PHP engding -->
			<!-- 电影分类开始 -->
				<div class="row text-center">
                <div class="row">
                    <h2 style="color: mediumvioletred;"align="left"><i>电影栏目:</i>
</h2>
                    <ul class="list-inline row text-center">
                        <?php
                        while($row1=mysql_fetch_assoc($result11))
                        {
						?>
                        <div class="col-xs-5 col-sm-4 col-lg-2">
                            <img src="/final_project/foreground_system/lite/images/<?php
                            echo $row1["pic"];
                            ?>" class="responsive img-thumbnail"/>

                            <p><a href="show.php?vid=<?php
                            echo $row1["vid"];
                            ?>"><?php
                            echo $row1["videoname"];
                            ?></a>
                            </p>
                        </div>
                    <?php
                    }
                    ?>
                    </ul>
                    <a  class="btn btn-red" href="list.php?tid=<?php
                    echo $tid1; ?>" role="button">
                    <img src="images/xiao.gif" height="40" width="40">
                    	点我获取更多好看的视频哟~ </a>
                </div>  
            </div>  <!--/row--> 
            <!--电影分类ending--> 
            
            
             <!--电视剧分类--> 
             <div class="row text-center">
                <div class="row">
                    <h2 style="color: mediumvioletred;"align="left"><i>电视剧栏目:</i>
</h2>
                    <ul class="list-inline row text-center">
                        <?php
                        while($row2=mysql_fetch_assoc($result22))
                        {
						?>
                        <div class="col-xs-5 col-sm-4 col-lg-2">
                            <img src="/final_project/foreground_system/lite/images/<?php
                            echo $row2["pic"];
                            ?>" class="responsive img-thumbnail"/>

                            <p><a href="show.php?vid=<?php
                            echo $row2["vid"];
                            ?>"><?php
                            echo $row2["videoname"];
                            ?></a>
                            </p>
                        </div>
                    <?php
                    }
                    ?>
                    </ul>
                    <a  class="btn btn-red" href="list.php?tid=<?php
                    echo $tid2; ?>" role="button"><img src="images/xiao.gif" height="40" width="40">点我获取更多好看的视频哟~ </a>
                </div>  
            </div>
             
             <!--电视剧分类ending--> 
	
				<!--动画片分类开始--> 
				   <div class="row text-center">
                <div class="row">
                    <h2 style="color: mediumvioletred;"align="left"><i>动漫栏目:</i>
</h2>
                    <ul class="list-inline row text-center">
                        <?php
                        while($row3=mysql_fetch_assoc($result33))
                        {
						?>
                        <div class="col-xs-5 col-sm-4 col-lg-2">
                            <img src="/final_project/foreground_system/lite/images/<?php
                            echo $row3["pic"];
                            ?>" class="responsive img-thumbnail"/>

                            <p><a href="show.php?vid=<?php
                            echo $row3["vid"];
                            ?>"><?php
                            echo $row3["videoname"];
                            ?></a>
                            </p>
                        </div>
                    <?php
                    }
                    ?>
                    </ul>
                    <a  class="btn btn-red" href="list.php?tid=<?php
                    echo $tid3; ?>" role="button">
                    <img src="images/xiao.gif" height="40" width="40">点我获取更多好看的视频哟~ </a>
                </div>  
            </div>
				
				<!--动画片分类ending--> 	
					</div>
					
					
  <!-- 视频分类 engding -->
  <!-- 点击排行 -->
     <div class="col-md-1 style="float:left;
     	margin-top: 30px;width: 10px;height: 2000px;
     	 background: red;"></div> 
					<div class="col-md-2 ">
					
					      <h2 style="color:red;" >点击排行</h2>
        <ul class="list-inline row text-center">
				<?php
				while($row5=mysql_fetch_assoc($result5))
				{
				?>
				<li class="col-xs-12 col-lg-6">
                        <img src="/final_project/foreground_system/lite/images/<?php
                        echo $row5["pic"];
                        ?>" class="responsive img-thumbnail" />
                        <p><a href="show.php?vid=<?php
                            echo $row5["vid"];
                            ?>"><?php
						//显示视频名称中的前5个字符
                        echo mb_substr($row5["videoname"],0,6,'utf-8');
                        ?></a>
                        </p>
                    </li>
                 <?php
				}
                 ?>
               </ul>
						<!-- 点击排行 ending-->
					<!--下载排行 开始-->
					 <h2 style="color:red;" >下载排行</h2>
        <ul class="list-inline row text-center">
				<?php
				while($row6=mysql_fetch_assoc($result6))
				{
				?>
				<li class="col-xs-12 col-lg-6">
                        <img src="/final_project/foreground_system/lite/images/<?php
                        echo $row6["pic"];
                        ?>" class="responsive img-thumbnail" />
                        <p><a href="show.php?vid=<?php
                            echo $row6["vid"];
                            ?>"><?php
						//显示视频名称中的前5个字符
                        echo mb_substr($row6["videoname"],0,6,'utf-8');
                        ?></a>
                        </p>
                    </li>
                 <?php
				}
                 ?>
               </ul>
					
					</div>
				
					
					
					
					
					<!--下载排行 ending-->
					</div>
					</div>
	
		


 
 
 
 

		
		
  
		<!-- 2 engding -->

		<!--
        	作者：1161105403@qq.com
        	时间：2019-03-13
        	描述：
        	
        	导航开始
        -->

		<div class="row">
			<p style="color:green" align="center">
				<br>动漫之家欢迎您~<br> 醉不愚人人自痴，失欢谁与解相思
				<br> 三百六十街牵挂，字字得著谍恋花
			</p>

			<nav class="navbar navbar-inverse">
				<div class="col-md-12">
					<ul class="nav nav-tabs">
						<li role="presentation" class="active">
							<a href="#">动漫之家</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">帮助中心</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">开放平台</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">诚聘英才</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">联系我们</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">网站合作</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">法律声明</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">诚聘英才</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">隐私权政策</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">知识产权</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">廉政举报</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">在线律师</a>
						</li>
<li role="presentation" class="active">
							<a href="#">在线客服</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">站长联系</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">百度云盘</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">网易登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">在线客服</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">站长联系</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">百度云盘</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">网易登录</a>
						</li>
					</ul><br>
					<ul class="nav nav-tabs">
						<li role="presentation" class="active">
							<a href="#">动漫之家</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">动漫云计算</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">高德地图</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">天猫</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">淘宝</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">京东</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">聚划算</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">支付宝</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">微信</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">信用卡</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">商家入驻</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">运营服务</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">售后规则</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">免费注册</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">缺货赔付</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">发票保障</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">QQ登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">微博登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">小米登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">魅族登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">ios登录</a>
						</li>
						<li role="presentation" class="active">
							<a href="#">微信登录</a>
						</li>

					</ul>

			</nav>

			<!--
        	作者：1161105403@qq.com
        	时间：2019-03-13
        	描述：
        	
        	ending
        -->
			</div>
	</body>

</html>